package edu.sctu.treebuilder.day02;

/**
 * Created by apple on 05/02/2018.
 */
public class StateTest {
    public static void main(String[] args) {

        CharacterReader reader = new CharacterReader("<html><body><p>hello</p></body></html>");

        StateController controller = new StateController(reader);

        while (true) {

            Token token = controller.read();

            System.out.println(token.type);

            if (token.type == Token.TokenType.EOF)
                break;
        }
    }
}
